<head th:fragment="header"><!-- 必要的标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no">
    <!-- Bootstrap CSS -->

    <!--    <link crossorigin="anonymous" integrity="sha512-6KY5s6UI5J7SVYuZB4S/CZMyPylqyyNZco376NM2Z8Sb8OxEdp02e1jkKk/wZxIEmjQ6DRCEBhni+gpr9c4tvA==" href="https://lib.baomitu.com/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">-->
    <!-- <link rel="stylesheet" th:href="@{/css/style.css}">-->
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}">
    <link rel="stylesheet" th:href="@{/css/bootstrap-theme.css}">
    <link rel="stylesheet" th:href="@{/css/game.css}">
    <link rel="stylesheet" href="/css/game.css">
    <link rel="stylesheet" href="/css/bootstrap.css">
    </head>
<div id="nav_header">
    <nav th:fragment="navbar" class="navbar navbar-default">
        <div class="container">
            <div class="container-fluid">

                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" th:href="@{/}">
                        <img src="../../img/logo%20(1).png">
                    </a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

                    <ul class="nav navbar-nav navbar-right">
                        <li><a th:href="@{/}">主页</a></li>
                        <li><a th:href="@{/games}">游戏</a></li>
                        <li><a th:href="@{/players}">用户</a></li>
                        <li><a th:href="@{/file}">上传</a></li>
                        <li><a th:href="@{/comments}">公告</a></li>
                        <li><a th:href="@{/login}">注册<span class="spn1"></span></a></li>
                        <li><a th:href="@{/logout}"><span class="spn2">登出</span></a></li>
                    </ul>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </div>
    </nav>
</div>